package com.copd.mapper;

import com.copd.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface UserMapper {
    void insert(User user);
    
    User findByUsername(@Param("username") String username);
    
    User selectByContactInfo(@Param("contactInfo") String contactInfo);
    
    User selectById(Integer userId);
    
    List<User> getAllUsers();
    
    int updateUserInfo(User user);
}